﻿@model IEnumerable<Promike.site.Models.Photo>
@{
    ViewBag.Title = "Добро пожаловать";
}
<style type="text/css">
    .main-div {display: block;margin: 0 auto;max-width: 1024px;}
</style>
<div id="cycle" class="main-div">
    @{
        foreach (var item in Model)
        {
            var src = "/Files/" + @item.PhysicalName;
        <img class="crop-image" src="@src" alt="@item.FileName" title="Рейтинг: @item.Clicks" onclick="window.location='/Photo/Image/@item.Id'"/>
        }
    }
</div>

@Scripts.Render("~/bundles/social-buttons")
@Scripts.Render("~/bundles/cycle")
<script type="text/javascript">
    $('#cycle').cycle({
        speed: 1000,
        timeout: 2000
    });
</script>

